<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/inspectRecord/controlInspectSearch" onsubmit="return  dwzSearch(this, 'dialog');">
<input type="hidden" name="controlNum" value="<#if condition??>${condition.controlNum!''}</#if>" />
<div class="panelBar">
    <ul class="toolBar">
        <li style="margin-top: 8px;"><h1 style="text-align:left;">过程检验信息</h1></li>
    </ul>
</div>
<table class="table" layoutH="380">
    <thead>
        <tr>
            <th width="30"><@label key="serialNumber.C">序号</@label></th>
            <th width="100" ><@label key="defectCode.C">缺陷编号</@label></th>
            <th width="100" ><@label key="defectText.C,name.C">缺陷描述</@label></th>
            <th width="100" ><@label key="defectLevelText.C">缺陷等级描述</@label></th>
            <th width="100" ><@label key="responsibilityTypeText.C">责任类型描述</@label></th>
            <th width="80"><@label key="defectType.C">缺陷类型：</@label></th>
            <th width="100"><@label key='inspectUser.C'>检验人员：</@label></th>
            <th width="100"><@label key='inspectDateTime.C'>检验时间：</@label></th>
            <th width="100" ><@label key="qmOperation.C,code.C">质检工序编号</@label></th>
            <th width="100" ><@label key="qmOperation.C,name.C">质检工序名称</@label></th>
            <th width="100"><@label key="workCenterCode.C">工作中心</@label></th>
            <th width="100"><@label key="workUnit.C">作业单元</@label></th>
            <th width="50" ><@label key="defectDefine.C,quantity.C">缺陷数量</@label></th>
        </tr>
    </thead>
    <tbody>
        <#if page?? && (page.data?size>0)>
            <#list page.data as inspect>
                <#assign defect = inspect.defect />
                <tr>
                    <td>${page.startRow + inspect_index}</td>
                    <td>${inspect.defectCode!''}</td>
                    <td>${inspect.defectText!''}</td>
                    <td>${defect.defectLevelText!''}</td>
                    <td>${defect.responsibilityTypeText!''}</td>
                    <td>${defect.defectTypeText!''}</td>
                    <td>${inspect.createUser!''}</td>
                    <td>${(inspect.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                    <td>${inspect.operationCode!''}</td>
                    <td>${inspect.operationText!''}</td>
                    <td>${inspect.workcenterText!''}</td>
                    <td>${inspect.workunitText!''}</td>
                    <td>${inspect.quantity!''}</td>
                </tr>
            </#list>
        </#if>
    </tbody>
</table>
<div class="panelBar" style="border-width: 1px;">
    <#if page??>
    <div class="pages">
        <span ><@label key="pagePanelShow.C">显示</@label></span> <select class="combox" name="numPerPage"
            onchange="navTabPageBreak({numPerPage:this.value},'archives_controlInspect')"> <#list
            [10,20,30,50,100,200] as page_size> <#if
            (page.numPerPage)==page_size>
            <option value="${page_size}" selected="selected">${page_size}</option>
            <#else>
            <option value="${page_size}">${page_size}</option> </#if> </#list>
        </select> <span><@label key="pagePanelMiddle.C">共</@label></span><span><#if page.totalCount??>${page.totalCount?c}<@label key="item.C">条</@label></span></#if>
    </div>

    <div class="pagination" targetType="navTab" rel="archives_controlInspect"
        totalCount="<#if page.totalCount??>${page.totalCount?c}</#if>"
        numPerPage="<#if page.numPerPage??>${page.numPerPage?c}</#if>"
        pageNumShown="5"
        currentPage="<#if page.pageNum??>${page.pageNum?c}</#if>"></div>
    </#if>
</div>
